package com.yike.user.service;

import com.yike.user.entity.GoodsCount;
import com.yike.user.param.GoodsCountPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 商品销售统计 服务类
 *
 * @author Sakura
 * @since 2024-11-13
 */
public interface GoodsCountService extends BaseService<GoodsCount> {

    /**
     * 保存
     *
     * @param goodsCount
     * @return
     * @throws Exception
     */
    boolean saveGoodsCount(GoodsCount goodsCount) throws Exception;

    /**
     * 修改
     *
     * @param goodsCount
     * @return
     * @throws Exception
     */
    boolean updateGoodsCount(GoodsCount goodsCount) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteGoodsCount(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param goodsCountPageParam
     * @return
     * @throws Exception
     */
    Paging<GoodsCount> getGoodsCountPageList(GoodsCountPageParam goodsCountPageParam) throws Exception;

}
